package cs236369.hw5;

import java.util.Date;
import java.util.HashSet;

public class EventPost extends Post {

	private int maxRegs;		// the maximum number of allowed registrations to this event
	private HashSet<Consensus> consensuses;		// All of the consensuses belong to this event
	
	public EventPost(String content, String userName, Location location,Date date,int maxRegs) {
		super(content, userName, location, date);
		this.maxRegs = maxRegs;
		this.consensuses = new HashSet<Consensus>();
	}
	
	public int getMaxRegs(){
		return maxRegs;
	}
	
	public HashSet<Consensus> getConsensuses(){
		return consensuses;
	}
	
	public void addConsensus(Consensus cons){
		consensuses.add(cons);
	}

}
